#include"D:\\eqC\\class\\jxkj01_cf\\day02\\tool.h"
int fact(int n){
    return n?fact(n-1)*n:1;
}
int cnr(int n,int r){
   // return fact(n)/fact(r)/fact(n-r);
   if(n==r||r==0)return 1;
   return cnr(n-1,r-1)+cnr(n-1,r);
}
int main()
{
    int size=50;
    int i,j;
    for(i=0;i<=size;i++)
    {
        for(j=0;j<=i;j++)
            printf("%7d ",cnr(i,j));
        puts("");
    }
    return 0;
}
